package org.asiainfo.file.config.properties;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.cloud.context.config.annotation.RefreshScope;
import org.springframework.context.annotation.Configuration;

/**
 * 本地上传配置类
 *
 * @author dotor-ww
 */
@Configuration
@ConfigurationProperties(prefix = "local")
@RefreshScope
@Data
public class LocalProperties {

    /**
     * 资源映射路径前缀
     */
    private String filePrefix;

    /**
     * 域名或本地访问地址
     */
    private String fileDomain;

    /**
     * 上传文件存储在本地的根路径
     */
    private String filePath;
}
